.content {
    padding: 1rem;
}

.document {
    margin: 0 auto;
    padding: 0;
    transition: padding 2s;
    -moz-transition: padding 2s;
    -webkit-transition: padding 2s;
    -o-transition: padding 2s;
    .text {
        background-color: #fff;
        box-shadow: 0 0 5px gray;
        border-radius: 3px;
        padding: 0.5rem;
        margin-top: 1.5rem;
    }
}

@media screen and (min-width:1200px) {
    .document {
        padding: 0 5rem;
        .text {
            padding: 3rem;
        }
    }
    .content {
        padding: 0 15rem;
    }
}